package top.infopub.mgr.sys.vo;


import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSON;


/**
 * easyUI Tree实体，属性命名需严格和目标要求一致
 * @author Awoke
 * @version 2018-10-17
 * @see MenuVo
 * @since
 */
public class MenuVo {

    private String id;

    private String parentId;

    private String menuCode;

    private String text;

    private String menuUrl;

    // 非button
    private String isButton = "0";

    private String iconCls;

    private boolean checked = false;

    private String state = "open";

    private Map<String, String> attributes;

    private List<MenuVo> children;
    
    /* 是否父节点 */
    private String bisRoot;

    /**
     * 构造器
     */
    public MenuVo() {

    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //setter getter
    public String getParentId() {
        return parentId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getIsButton() {
        return isButton;
    }

    public void setIsButton(String isButton) {
        this.isButton = isButton;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Map<String, String> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, String> attributes) {
        this.attributes = attributes;
    }

    public List<MenuVo> getChildren() {
        return children;
    }

    public void setChildren(List<MenuVo> children) {
        this.children = children;
    }
    
    public String getBisRoot() {
        return bisRoot;
    }

    public void setBisRoot(String bisRoot) {
        this.bisRoot = bisRoot;
    }

}
